<?xml version="1.0" encoding="UTF-8" ?>
<service>
	<name>wxapi</name>
    <request_path>/wxapi/</request_path>
    <preserve_host>true</preserve_host>
    <strip_request_path>false</strip_request_path>
    <upstream_url>http://{{.Env.APP_SRV_NAME}}:{{.Env.APP_SRV_PORT}}</upstream_url>
 	<plugin name="authentication" enabled="true">
    	<app_key>{{.Env.API_KEY}}</app_key>
        <app_secret>{{.Env.API_SECRET}}</app_secret>
        <silent_mode>true</silent_mode>
        <whitelist>/wxapi/mp/domain/vertify/*</whitelist>
    </plugin>
    
    <plugin name="request-transformer" enabled="true">      
	    <add>            
	      <headers isarray="true" allow_empty_value="false">            
	         <X-APP-SECRET>{{.Env.API_SECRET}}</X-APP-SECRET>        
	      </headers> 
		</add>    
 	</plugin>
</service>
